﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="NewClass.aspx.cs" Inherits="Default2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="body" Runat="Server">
    <div style="height: 600px">
        <div style="margin: 20px">
        <span class="style7" style="font-size: x-large">新建班级向导</span>
        
            <asp:Panel ID="Panel1" runat="server">
           
        <br /
            <br />
            <br />
            学校 
            <asp:TextBox runat="server" Enabled="False">广州大学华软软件学院</asp:TextBox>
            <br />
            <br />
            系别 
            <asp:DropDownList ID="DropDownList1" runat="server" 
                DataSourceID="XmlDataSource1" DataTextField="name" DataValueField="name">
            </asp:DropDownList>
            <br />
            <br />
            年级 
            <asp:DropDownList ID="DropDownList2" runat="server" 
                DataSourceID="XmlDataSource2" DataTextField="name" DataValueField="name">
            </asp:DropDownList>
            <br />
            <br />
            班级 
            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
            <br />
            <br />
            <asp:Label ID="Label1" runat="server" style="color: #FF0000"></asp:Label>
            <br />
            <br />
            <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="确定" />
            <br />
            <br />
            <br />
            <br />
        <br />

       </asp:Panel>
       
            <br />
            <asp:Panel ID="Panel2" runat="server" Visible="False">
                <br />
                <br />
                恭祝你，班级创建成功。<asp:HyperLink ID="HyperLink1" runat="server" 
                    NavigateUrl="index.aspx">点我继续</asp:HyperLink>
            </asp:Panel>
            <br />
            <br />
       
            <asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/XMLFile.xml" 
                XPath="school/department" ontransforming="XmlDataSource1_Transforming"></asp:XmlDataSource>
            <asp:XmlDataSource ID="XmlDataSource2" runat="server" DataFile="~/XMLFile.xml" 
                XPath="school/grade"></asp:XmlDataSource>
       
    </div>
    
</asp:Content>

